﻿<UserControl x:Class="ImageWallControl.MainPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:wall="http://www.bluespire.com/image-wall"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">
    <UserControl.Resources>

        <wall:ImageBrushProvider x:Key="brushProvider">
            <wall:ImageBrushProvider.Images>
                <ImageBrush ImageSource="Images/Blue hills.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Chrysanthemum.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Desert.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Hydrangeas.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Jellyfish.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Koala.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Lighthouse.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Penguins.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Sunset.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Tulips.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Water lilies.jpg"
                            Stretch="UniformToFill" />
                <ImageBrush ImageSource="Images/Winter.jpg"
                            Stretch="UniformToFill" />
            </wall:ImageBrushProvider.Images>
        </wall:ImageBrushProvider>

        <wall:FlickrBrushProvider x:Key="flickr" />

    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot"
          Background="Black">
        <wall:ImageWall x:Name="Wall"
                               BrushProvider="{StaticResource brushProvider}" />
        <Button Content="Refresh"
                Click="Button_Click"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Right" />
    </Grid>
    
</UserControl>
